using System;
using System.Collections;
using System.Web.UI;

namespace Sedna.Core.Controls.Support.Tab
{
    /// <summary>
    /// ControlBuilder for TabControl.
    /// </summary>
    public class TabControlBuilder: System.Web.UI.ControlBuilder
    {
        public override bool AllowWhitespaceLiterals()
        {
            return false;
        }

        public override void AppendLiteralString(string s)
        {
			
        }

        public override Type GetChildControlType(string tagName, IDictionary attribs)
        {
            if (String.Compare(tagName, "TabPage", true)==0||String.Compare(tagName, "Page", true)==0||String.Compare(tagName, "Tab", true)==0)
            {
                return typeof(Tab);
            }	
            return null;
        }
    }
}
